package com.atguigu.auth.feign;

import com.atguigu.common.to.AutoLoginResponse;
import com.atguigu.auth.vo.UserLoginVo;
import com.atguigu.auth.vo.UserRegistVo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeign {
    @PostMapping("member/member/ret")
    R ret(@RequestBody UserRegistVo userRegistVo);

    @PostMapping("member/member/login")
    R login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("member/member/auth2.0/login")
    R autoLogin(@RequestBody AutoLoginResponse autoLoginResponse);
}
